package com.homedo.odin.solution.service;

import com.homedo.core.common.base.service.BaseService;
import com.homedo.odin.solution.dao.UserScoreMapper;
import com.homedo.odin.solution.model.entity.UserScore;
import org.springframework.stereotype.Service;

/**
 * <p> 用户积分 服务实现类 </p>
 *
 * @author HarveyDing
 * @since 2018-03-08
 */
@Service
public class UserScoreServiceImpl extends BaseService<UserScoreMapper, UserScore> {

    public UserScore selectByUserId(Integer userId) {
        UserScore score = new UserScore();
        score.setUserId(userId);
        score.setIsDel(0);
        return baseMapper.selectOne(score);
    }
}
